<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\Area;
use App\Http\Resources\AreaResource;
class AreaController extends Controller
{
    public function index(){
//        AreaResource::wrap("data");
        $list = Area::orderBy("id","asc")->orderBy('order_number',"desc")->get();
        return AreaResource::collection($list);
    }
}
